** Not conditioned on specific civilizational combinations

* Model 1, NO civ dyad dummies and trends
xi: nbreg terrincidents  lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  polity2terrorists polity2target contiguity samedyad lndistance  sl_source_interciv_ln3ma_cold  sl_source_interciv_ln3ma_post lnannsuminc_byterrorists  lnannsuminc_ontarget  i.year  if israel==0 & iddyadisr_rus!=. , nolrtest iterate(150) cluster(dyadid)
* Testing equality of coefficients
test sl_source_interciv_ln3ma_cold=sl_source_interciv_ln3ma_post
* Estimating substantive effects
listcoef sl_source_interciv_ln3ma_cold sl_source_interciv_ln3ma_post, percent help
su sl_source_interciv_ln3ma_cold if sameciv_rus==0 & coldwar==1
su sl_source_interciv_ln3ma_post if sameciv_rus==0 & coldwar==0
* Testing equality in conditional marginal effect at mean co-variate values
margins, dydx(sl_source_interciv_ln3ma_cold sl_source_interciv_ln3ma_post) atmeans post vce(unconditional)
test sl_source_interciv_ln3ma_cold=sl_source_interciv_ln3ma_post


* Model 2, WITH civ dyad dummies
xi: nbreg terrincidents  lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  polity2terrorists polity2target contiguity samedyad lndistance  sl_source_interciv_ln3ma_cold  sl_source_interciv_ln3ma_post lnannsuminc_byterrorists  lnannsuminc_ontarget i.iddyadisr_rus i.year  if israel==0 & iddyadisr_rus!=. , nolrtest iterate(150) cluster(dyadid)
* Testing equality of coefficients
test sl_source_interciv_ln3ma_cold=sl_source_interciv_ln3ma_post
* Estimating substantive effects
listcoef sl_source_interciv_ln3ma_cold sl_source_interciv_ln3ma_post, percent help
* Testing equality in conditional marginal effect at mean co-variate values
margins, dydx(sl_source_interciv_ln3ma_cold  sl_source_interciv_ln3ma_post ) atmeans post vce(unconditional)
test sl_source_interciv_ln3ma_cold=sl_source_interciv_ln3ma_post


* Model 3, WITH civ dyad dummies and trends
xi: nbreg terrincidents  lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  polity2terrorists polity2target contiguity samedyad lndistance  sl_source_interciv_ln3ma_cold  sl_source_interciv_ln3ma_post lnannsuminc_byterrorists  lnannsuminc_ontarget i.iddyadisr_rus i.iddyadisr_rus*year  i.year  if israel==0 & iddyadisr_rus!=. , nolrtest iterate(150) cluster(dyadid)
* Testing equality of coefficients
test sl_source_interciv_ln3ma_cold=sl_source_interciv_ln3ma_post
* Estimating substantive effects
listcoef sl_source_interciv_ln3ma_cold sl_source_interciv_ln3ma_post, percent help
listcoef lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  lndistance lnannsuminc_byterrorists  lnannsuminc_ontarget , percent help
* Testing equality in conditional marginal effect at mean co-variate values
margins, dydx(sl_source_interciv_ln3ma_cold  sl_source_interciv_ln3ma_post ) atmeans post vce(unconditional)
test sl_source_interciv_ln3ma_cold=sl_source_interciv_ln3ma_post



** Conditioned on specific civilizational combinations

* rest v west
* Model 4, NO civ dyad dummies and trends
xi: nbreg terrincidents  lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  polity2terrorists polity2target contiguity samedyad lndistance   sl_source_ln3ma_cold_rvw sl_source_ln3ma_post_rvw sl_source_ln3ma_cold_notrvw sl_source_ln3ma_post_notrvw lnannsuminc_byterrorists  lnannsuminc_ontarget  i.year  if israel==0 & iddyadisr_rus!=. , nolrtest iterate(150) cluster(dyadid)
* Testing equality of coefficients
test  sl_source_ln3ma_cold_rvw = sl_source_ln3ma_post_rvw 
test sl_source_ln3ma_cold_notrvw = sl_source_ln3ma_post_notrvw
* Estimating substantive effects
listcoef sl_source_ln3ma_cold_rvw sl_source_ln3ma_post_rvw  sl_source_ln3ma_cold_notrvw  sl_source_ln3ma_post_notrvw, percent help
su sl_source_ln3ma_cold_rvw if restvwest_rus==1 & coldwar==1
su sl_source_ln3ma_post_rvw if restvwest_rus==1 & coldwar==0
su sl_source_ln3ma_cold_notrvw if restvwest_rus==0 & coldwar==1
su sl_source_ln3ma_post_notrvw if restvwest_rus==0 & coldwar==0
* Testing equality in conditional marginal effect at mean co-variate values
margins, dydx(sl_source_ln3ma_cold_rvw sl_source_ln3ma_post_rvw sl_source_ln3ma_cold_notrvw sl_source_ln3ma_post_notrvw) atmeans post vce(unconditional)
test  sl_source_ln3ma_cold_rvw = sl_source_ln3ma_post_rvw 
test sl_source_ln3ma_cold_notrvw = sl_source_ln3ma_post_notrvw

* rest v west
* Model 5, WITH civ dyad dummies and trends
xi: nbreg terrincidents  lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  polity2terrorists polity2target contiguity samedyad lndistance   sl_source_ln3ma_cold_rvw sl_source_ln3ma_post_rvw sl_source_ln3ma_cold_notrvw sl_source_ln3ma_post_notrvw    lnannsuminc_byterrorists  lnannsuminc_ontarget i.iddyadisr_rus i.iddyadisr_rus*year  i.year  if israel==0 & iddyadisr_rus!=. , nolrtest iterate(150) cluster(dyadid)
* Testing equality of coefficients
test  sl_source_ln3ma_cold_rvw = sl_source_ln3ma_post_rvw 
test sl_source_ln3ma_cold_notrvw = sl_source_ln3ma_post_notrvw
* Estimating substantive effects
listcoef sl_source_ln3ma_cold_rvw sl_source_ln3ma_post_rvw sl_source_ln3ma_cold_notrvw sl_source_ln3ma_post_notrvw, percent help
su sl_source_ln3ma_cold_rvw if restvwest_rus==1 & coldwar==1
su sl_source_ln3ma_post_rvw if restvwest_rus==1 & coldwar==0
su sl_source_ln3ma_cold_notrvw if restvwest_rus==0 & coldwar==1
su sl_source_ln3ma_post_notrvw if restvwest_rus==0 & coldwar==0
* Testing equality in conditional marginal effect at mean co-variate values
margins, dydx(sl_source_ln3ma_cold_rvw sl_source_ln3ma_post_rvw sl_source_ln3ma_cold_notrvw sl_source_ln3ma_post_notrvw) atmeans post vce(unconditional)
test  sl_source_ln3ma_cold_rvw = sl_source_ln3ma_post_rvw 
test sl_source_ln3ma_cold_notrvw = sl_source_ln3ma_post_notrvw


* islam v rest
* Model 6, NO civ dyad dummies and trends
xi: nbreg terrincidents  lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  polity2terrorists polity2target contiguity samedyad lndistance   sl_source_ln3ma_cold_ivr sl_source_ln3ma_post_ivr sl_source_ln3ma_cold_notivr sl_source_ln3ma_post_notivr   lnannsuminc_byterrorists  lnannsuminc_ontarget i.year  if israel==0 & iddyadisr_rus!=. , nolrtest iterate(150) cluster(dyadid)
* Testing equality of coefficients
test  sl_source_ln3ma_cold_ivr = sl_source_ln3ma_post_ivr 
test sl_source_ln3ma_cold_notivr = sl_source_ln3ma_post_notivr
* Estimating substantive effects
listcoef sl_source_ln3ma_cold_ivr sl_source_ln3ma_post_ivr sl_source_ln3ma_cold_notivr  sl_source_ln3ma_post_notivr, percent help
su sl_source_ln3ma_cold_ivr if islamvrest_rus==1 & coldwar==1
su sl_source_ln3ma_post_ivr if islamvrest_rus==1 & coldwar==0
su sl_source_ln3ma_cold_notivr if islamvrest_rus==0 & coldwar==1
su sl_source_ln3ma_post_notivr if islamvrest_rus==0 & coldwar==0
* Testing equality in conditional marginal effect at mean co-variate values
margins, dydx(sl_source_ln3ma_cold_ivr sl_source_ln3ma_post_ivr sl_source_ln3ma_cold_notivr sl_source_ln3ma_post_notivr) atmeans post vce(unconditional)
test  sl_source_ln3ma_cold_ivr = sl_source_ln3ma_post_ivr 
test sl_source_ln3ma_cold_notivr = sl_source_ln3ma_post_notivr


* islam v rest
* Model 7, WITH civ dyad dummies and trends
xi: nbreg terrincidents  lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  polity2terrorists polity2target contiguity samedyad lndistance   sl_source_ln3ma_cold_ivr sl_source_ln3ma_post_ivr sl_source_ln3ma_cold_notivr sl_source_ln3ma_post_notivr  lnannsuminc_byterrorists  lnannsuminc_ontarget i.iddyadisr_rus i.iddyadisr_rus*year  i.year  if israel==0 & iddyadisr_rus!=. , nolrtest iterate(150) cluster(dyadid)
* Testing equality of coefficients
test  sl_source_ln3ma_cold_ivr = sl_source_ln3ma_post_ivr 
test sl_source_ln3ma_cold_notivr = sl_source_ln3ma_post_notivr
* Estimating substantive effects
listcoef sl_source_ln3ma_cold_ivr sl_source_ln3ma_post_ivr sl_source_ln3ma_cold_notivr  sl_source_ln3ma_post_notivr, percent help
su sl_source_ln3ma_cold_ivr if islamvrest_rus==1 & coldwar==1
su sl_source_ln3ma_post_ivr if islamvrest_rus==1 & coldwar==0
su sl_source_ln3ma_cold_notivr if restvwest_rus==0 & coldwar==1
su sl_source_ln3ma_post_notivr if islamvrest_rus==0 & coldwar==0
* Testing equality in conditional marginal effect at mean co-variate values
margins, dydx(sl_source_ln3ma_cold_ivr sl_source_ln3ma_post_ivr sl_source_ln3ma_cold_notivr sl_source_ln3ma_post_notivr) atmeans post vce(unconditional)
test  sl_source_ln3ma_cold_ivr = sl_source_ln3ma_post_ivr 
test sl_source_ln3ma_cold_notivr = sl_source_ln3ma_post_notivr

* islam v west
* Model 8, NO civ dyad dummies and trends
xi: nbreg terrincidents  lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  polity2terrorists polity2target contiguity samedyad lndistance   sl_source_ln3ma_cold_ivw sl_source_ln3ma_post_ivw sl_source_ln3ma_cold_notivw sl_source_ln3ma_post_notivw   lnannsuminc_byterrorists  lnannsuminc_ontarget i.year  if israel==0 & iddyadisr_rus!=. , nolrtest iterate(150) cluster(dyadid)
* Testing equality of coefficients
test  sl_source_ln3ma_cold_ivw = sl_source_ln3ma_post_ivw 
test sl_source_ln3ma_cold_notivw = sl_source_ln3ma_post_notivw
* Estimating substantive effects
listcoef sl_source_ln3ma_cold_ivw sl_source_ln3ma_post_ivw sl_source_ln3ma_cold_notivw sl_source_ln3ma_post_notivw, percent help
su sl_source_ln3ma_cold_ivw if islamvwest_rus==1 & coldwar==1
su sl_source_ln3ma_post_ivw if islamvwest_rus==1 & coldwar==0
su sl_source_ln3ma_cold_notivw if islamvwest_rus==0 & coldwar==1
su sl_source_ln3ma_post_notivw if islamvwest_rus==0 & coldwar==0
* Testing equality in conditional marginal effect at mean co-variate values
margins, dydx(sl_source_ln3ma_cold_ivw sl_source_ln3ma_post_ivw sl_source_ln3ma_cold_notivw sl_source_ln3ma_post_notivw) atmeans post vce(unconditional)
test  sl_source_ln3ma_cold_ivw = sl_source_ln3ma_post_ivw 
test sl_source_ln3ma_cold_notivw = sl_source_ln3ma_post_notivw

* islam v west
* Model 9, WITH civ dyad dummies and trends
xi: nbreg terrincidents  lnpopterr lnpoptarg  lngdppcconstterrorists lngdppcconsttarget  polity2terrorists polity2target contiguity samedyad lndistance   sl_source_ln3ma_cold_ivw sl_source_ln3ma_post_ivw sl_source_ln3ma_cold_notivw sl_source_ln3ma_post_notivw   lnannsuminc_byterrorists  lnannsuminc_ontarget i.iddyadisr_rus i.iddyadisr_rus*year i.year  if israel==0 & iddyadisr_rus!=. , nolrtest iterate(150) cluster(dyadid)
* Testing equality of coefficients
test  sl_source_ln3ma_cold_ivw = sl_source_ln3ma_post_ivw 
test sl_source_ln3ma_cold_notivw = sl_source_ln3ma_post_notivw
* Estimating substantive effects
listcoef sl_source_ln3ma_cold_ivw sl_source_ln3ma_post_ivw sl_source_ln3ma_cold_notivw sl_source_ln3ma_post_notivw, percent help
su sl_source_ln3ma_cold_ivw if islamvwest_rus==1 & coldwar==1
su sl_source_ln3ma_post_ivw if islamvwest_rus==1 & coldwar==0
su sl_source_ln3ma_cold_notivw if islamvwest_rus==0 & coldwar==1
su sl_source_ln3ma_post_notivw if islamvwest_rus==0 & coldwar==0
* Testing equality in conditional marginal effect at mean co-variate values
margins, dydx(sl_source_ln3ma_cold_ivw sl_source_ln3ma_post_ivw sl_source_ln3ma_cold_notivw sl_source_ln3ma_post_notivw) atmeans post vce(unconditional)
test  sl_source_ln3ma_cold_ivw = sl_source_ln3ma_post_ivw 
test sl_source_ln3ma_cold_notivw = sl_source_ln3ma_post_notivw

